<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>测试</title>
</head>
<body style="padding-left: 50px">
    <h1>自定义指令</h1>

    <h2>1.用户123456是否拥有admin角色，并且返回admin的权限</h2>
    <div>
        <ul>
            <@role user='123456'role="admin"; result1, result2>
               <#if result1>
                   我的角色是<font color="red">admin</font><br/>
               </#if>
                我拥有的权限是:<font color="red">
                <#list result2 as item>
                    ${item},
                </#list>
            </font>
            </@role>
        </ul>
    </div>
</body>
</html>